package org.kia.data.adapters;

import android.os.Bundle;

import java.net.ConnectException;

/**
 *
 * @author Amir Lazarovich
 */
public interface RequestAdapter {

    public void addParams(Bundle params);

    /**
     * Set the server's uri path <code>http://example.org/path/to/file</code>
     *
     * @param uri
     */
    public void setUri(String uri);

    public ResponseAdapter send() throws ConnectException;

    /**
     * Get the representative key of this request
     *
     * @return
     */
    public String getKey();

}